<?php
$config = require_once THINK_PATH . '../common/config.php';

$part_config = array(
    /*框架配置*/
    'LAYOUT_ON'   => true,
    'LAYOUT_NAME' => 'layout',

    /*项目配置*/
    'APP_NAME'    => '药品管理',

    /*数据库配置*/
    'DB_TYPE'     => 'mysql',
    'DB_HOST'     => 'rm-bp17t4joi267jv052.mysql.rds.aliyuncs.com',
    'DB_NAME'     => 'drug_manage',
    'DB_USER'     => 'web_drug',
    'DB_PWD'      => 'GOOD888quannew',
    'DB_PORT'     => '3306',
    'DB_CHARSET'  => 'utf8',
    'DB_PREFIX'   => 'ymr_',

    /*业务级别配置参数*/
    'menus'        => array(
        array(
            array(
                'tip'  => '基础信息',
                'link' => 'javascript:void(0)'
            ),
            array(
                'tip'  => '基础信息',
                'link' => '/drug/index',
            )
        ),
        array(
            array(
                'tip'  => '库存管理',
                'link' => 'javascript:void(0)',
            ),
            array(
                'tip'  => '采购入库',
                'link' => '/drug/drugList',
            ),
            array(
                'tip'  => '库存查询',
                'link' => '/drug/stockList',
            ),
            array(
                'tip'  => '库存盘点',
                'link' => '/drug/checkList',
            ),
            array(
                'tip'  => '仓库管理',
                'link' => '/drug/warehouse',
            )
        ),
        array(
            array(
                'tip'  => '领用管理',
                'link' => 'javascript:void(0)',
            ),
            array(
                'tip'  => '药品领用',
                'link' => '/take/drug_index',
            ),
            array(
                'tip'  => '耗材领用',
                'link' => '/take/material_index',
            ),
            array(
                'tip'  => '耗材报备',
                'link' => '/material/reported',
            ),
        ),
        array(
            array(
                'tip'  => '报表统计',
                'link' => 'javascript:void(0)'
            ),
            array(
                'tip'  => '月度仓库盘点登记',
                'link' => '/drug/drugMonthList',
            ),
            array(
                'tip'  => '药品领用统计',
                'link' => '/drug/drugUseList',
            ),
            array(
                'tip'  => '耗材领用统计',
                'link' => '/drug/suppliesUseList',
            ),
        ),
        array(
            array(
                'tip'  => '用户中心',
                'link' => 'javascript:void(0)'
            ),
            array(
                'tip'  => '管理员管理',
                'link' => '/user/admin',
            ),
            array(
                'tip'  => '角色管理',
                'link' => '/role/index',
            ),
        ),

        array(
            array(
                'tip'  => '系统管理',
                'link' => '/config/set',
            ),
            array(
                'tip'  => '系统设置',
                'link' => '/config/set'
            ),
        ),

    ),
    /*商品所属站点*/
    'FiterControl' => array(
        'home\Controller\UserController',
        'home\Controller\ApiController'
    ),
    'icons'        => array(
        'icon-briefcase', 'icon-list-alt', 'icon-user', 'icon-comment', 'icon-tasks', 'icon-credit-card', 'icon-folder-open', 'icon-hdd', 'icon-cloud', 'icon-cog'
    ),
    'open_cache'   => false,
);
$config = array_merge($config, $part_config);

return $config;